
function trim(str)
{
    return str.replace(/(^\s*)|(\s*$)/g,"");
}



function subForm()
{
  if(trim(document.getElementById("reply_content").value)=="")
  {
  	alert("请输入回复内容！"); 
  	return;  
  } 
  
  document.addForm.submit();

}